package com.firebroo.DynamicProxy;

import java.lang.reflect.Proxy;


public class test {
	public static void main(String[] args) {
		CEO ceo = new CEO();
		AssistantHandler assistantHandler = new AssistantHandler();
		Leader leader = (Leader) assistantHandler.createProxy(ceo);
		leader.sign();
		
		Leader leader2  = (Leader) Proxy.newProxyInstance(CEO.class.getClassLoader(), CEO.class.getInterfaces(), assistantHandler);
		leader2.sign();
	}
}